home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / swingall.jar / javax / swing / plaf / basic / BasicComboBoxUI$2.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-07-15  |  1.4 KB  |  25 lines

  1. package javax.swing.plaf.basic;
  2.  
  3. import java.awt.event.ActionEvent;
  4. import java.awt.event.FocusAdapter;
  5. import java.awt.event.FocusEvent;
  6. import javax.swing.plaf.basic.BasicComboBoxUI.PropertyChangeHandler;
  7.  
  8. final class BasicComboBoxUI$2 extends FocusAdapter {
  9.    // $FF: synthetic field
  10.    private final BasicComboBoxUI.PropertyChangeHandler this$1;
  11.  
  12.    // $FF: synthetic method
  13.    BasicComboBoxUI$2(BasicComboBoxUI.PropertyChangeHandler var1) {
  14.       this.this$1 = var1;
  15.    }
  16.  
  17.    public void focusLost(FocusEvent var1) {
  18.       Object var2 = PropertyChangeHandler.access$0(this.this$1).comboBox.getEditor().getItem();
  19.       if (!var1.isTemporary() && var2 != null && !var2.equals(PropertyChangeHandler.access$0(this.this$1).comboBox.getSelectedItem())) {
  20.          PropertyChangeHandler.access$0(this.this$1).comboBox.actionPerformed(new ActionEvent(PropertyChangeHandler.access$0(this.this$1).editor, 0, ""));
  21.       }
  22.  
  23.    }
  24. }
  25.